home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / IDE / SUBARTIC / SUB_ARCT / CONSTRAI / EXT_MAKE.JAV < prev    next >
Encoding:
Text File  |  1996-10-04  |  1.7 KB  |  47 lines

  1.  
  2. package sub_arctic.constraints;
  3.  
  4. import sub_arctic.lib.interactor;
  5.  
  6. /** This is a small class that just provides one static method: OBJ() which
  7.  *  returns an ext_objpart_encoding initialized to refer to a given interactor
  8.  *  object.  This exists only to make the creation of external constraints
  9.  *  convenient (i.e., look good as in OTHER.OBJ(some_obj).X()).<p>
  10.  *
  11.  * @author Scott Hudson
  12.  */
  13. public class ext_maker  implements std_encoding_consts {
  14.  
  15.   /** 
  16.    * Create an ext_objpart_encoding initialized to refer to the given object.
  17.    * This provides a standard dummy part (which happens to be X) which should
  18.    * be replaced by the actual desired part (this would normally be done
  19.    * with one of the factory methods such as Y(), VISIBLE(), or PART(n).  
  20.    * 
  21.    * @param interactor obj the object being referenced
  22.    */
  23.   public static ext_objpart_encoding OBJ(interactor obj)
  24.     {
  25.       /* create an object filling in a dummy standard part */
  26.       return new ext_objpart_encoding(obj, PARTCODE_XY, HORIZONTAL);
  27.     }
  28.  
  29. }
  30.  
  31. /*=========================== COPYRIGHT NOTICE ===========================
  32.  
  33. This file is part of the subArctic user interface toolkit.
  34.  
  35. Copyright (c) 1996 Scott Hudson and Ian Smith
  36. All rights reserved.
  37.  
  38. The subArctic system is freely available for most uses under the terms
  39. and conditions described in 
  40.   http://www.cc.gatech.edu/gvu/ui/sub_arctic/sub_arctic/doc/usage.html 
  41. and appearing in full in the lib/interactor.java source file.
  42.  
  43. The current release and additional information about this software can be 
  44. found starting at: http://www.cc.gatech.edu/gvu/ui/sub_arctic/
  45.  
  46. ========================================================================*/
  47.